import service from '@/utils/request'

export const useMineApi = (id: number) => {
  return service.get('/biz/mine/' + id)
}

export const useMineSubmitApi = (dataForm: any) => {
  if (dataForm.id) {
    return service.put('/biz/mine', dataForm)
  } else {
    return service.post('/biz/mine', dataForm)
  }
}

export const useMineList = () => {
  return service.get('/biz/mine/list')
}

export const savedFence = () => {
  return service.get('/biz/mine/savedFence')
}
